package com.za.wbw.service.shop.impl;

import java.util.List;
import java.util.Map;

import com.za.wbw.dao.shop.CommentDao;
import com.za.wbw.model.shop.CommentInfo;
import com.za.wbw.service.shop.CommentService;

public class CommentServiceImpl implements CommentService {
	private CommentDao commentDao;
	
	// 查询评论列表
	public List<CommentInfo> queryCommentPage(Map<String,Object> pars) throws Exception{
		return getCommentDao().queryCommentPage(pars);
	}
	// 查询评论数量
	public int queryCommentCount(Map<String, Object> pars) throws Exception{
		return getCommentDao().queryCommentCount(pars);
	}
	// --------------------------------

	public CommentDao getCommentDao() {
		return commentDao;
	}

	public void setCommentDao(CommentDao commentDao) {
		this.commentDao = commentDao;
	}
	
}
